import request from '@/utils/request'

export const add = data => request({ url: '/menu/add', method: 'POST', data })

export const getList = params => request({ url: '/menu/list', method: 'GET', params })

export const getOptions = () => request({ url: '/menu/options', method: 'GET' })

export const edit = data => request({ url: '/menu/edit', method: 'PUT', data })

export const remove = id => request({ url: '/menu/remove', method: 'DELETE', data: { id } })
